package com.shujia.youhua

import com.esotericsoftware.kryo.Kryo
import org.apache.spark.serializer.KryoRegistrator

object CustomKryo extends KryoRegistrator{
  override def registerClasses(kryo: Kryo): Unit = {
    //告诉要序列化的内容
    kryo.register(classOf[Student])
  }
}
